package com.weixx.jdbc.mapper;

import com.weixx.jdbc.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther weixx
 * @Date 2022/1/16
 */

//表示是这是一个mybaits 的mapper类
@Repository
public interface BookMapper {
    List<Book> queryList();

    Book queryBookById(@Param("id")int id);

}
